package com.Extends.Test2;

public class AnimalDemo {
    public static void main(String[] args) {
        AnimalOperator ao = new AnimalOperator();
        Animal a = new Cat();
        ao.useAnimal(a);
//        ao.getAnimal().eat();
        Animal a1 = ao.getAnimal();
        a1.eat();


    }
}
